﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Apworks;

namespace TinyForum.Domain.Model
{
    public class Post : ContentBase, IAggregateRoot
    {
        private long topicID;

        protected Post() { }

        public Post(long topicID)
        {
            this.topicID = topicID;
        }

        public virtual long TopicID
        {
            get { return this.topicID; }
        }

        public override string ToString()
        {
            return this.title;
        }
    }
}
